/**
 * 
 */
package dstation.databeans;

import java.io.Serializable;
import java.sql.Date;
import java.util.ArrayList;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * @author Evan
 *
 */
public class ResultBean implements IsSerializable, Serializable{

	
	private static final long serialVersionUID = -2458175949948359727L;
	private int resultid;
	private int robotid;
	private int sensorid;
	private int testid;
	private Date date;
	private ArrayList<Reading> data;


	/**
	 * @return the robotid
	 */
	public int getRobotid() {
		return robotid;
	}


	/**
	 * @return the sensorid
	 */
	public int getSensorid() {
		return sensorid;
	}


	/**
	 * @return the testid
	 */
	public int getTestid() {
		return testid;
	}


	/**
	 * @return the data
	 */
	public ArrayList<Reading> getData() {
		return data;
	}


	/**
	 * @param robotid the robotid to set
	 */
	public void setRobotid(int robotid) {
		this.robotid = robotid;
	}


	/**
	 * @param sensorid the sensorid to set
	 */
	public void setSensorid(int sensorid) {
		this.sensorid = sensorid;
	}


	/**
	 * @param testid the testid to set
	 */
	public void setTestid(int testid) {
		this.testid = testid;
	}


	/**
	 * @param data the data to set
	 */
	public void setData(ArrayList<Reading> data) {
		this.data = data;
	}


	/**
	 * @return the date
	 */
	public Date getDate() {
		return date;
	}


	/**
	 * @param date the date to set
	 */
	public void setDate(Date date) {
		this.date = date;
	}
	
	public Reading createReading(){
		return new Reading();
	}


	/**
	 * @param resultid the resultid to set
	 */
	public void setResultid(int resultid) {
		this.resultid = resultid;
	}


	/**
	 * @return the resultid
	 */
	public int getResultid() {
		return resultid;
	}

}
